﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="metadataPropertiesSettings.aspx.cs" Inherits="Grauers_set_metadata_properties.Layouts.Grauers_set_metadata_properties.GrauersMetadataPropertiesSettings" DynamicMasterPageFile="~masterurl/default.master" %>

<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">

</asp:Content>

<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
    <div style="padding:20px">
        <span style="padding-bottom:5px"><b>Settings Document libraries</b></span>
        <table style="border:solid 1px #c0c0c0" width="450px">
            <tr>
                <td style="width:200px">
                    Document library:
                </td>
                <td>                    
                    <asp:DropDownList AutoPostBack="true" OnSelectedIndexChanged="DocumentsDropDownList_SelectedIndexChanged" runat="server" id="DocumentsDropDownList"    />
                </td>
            </tr>
            <tr>
                <td>
                    Issue field: 
                </td>
                <td>
                    <asp:DropDownList runat="server" id="IssueDropDownList" />
                </td>
            </tr>
            <tr>
                <td>
                    Approved by: 
                </td>
                <td>
                    <asp:DropDownList runat="server" id="ApprovedByDropDownList" />
                </td>
            </tr>    
            <tr>
                <td>
                    Approved date: 
                </td>
                <td>
                    <asp:DropDownList runat="server" id="ApprovedDateDropDownList" />
                </td>
            </tr>    
            <tr>
                <td colspan="2" align="right">
                    <asp:ImageButton runat="server" OnClick="cancelImageButton_Click" id="cancelImageButton" visible="false"/>&nbsp;
                    <asp:ImageButton runat="server" OnClick="updateImageButton_Click" id="updateImageButton" visible="false"/>&nbsp;
                    <asp:ImageButton runat="server" OnClick="addImageButton_Click" id="addImageButton"/>
                </td>
            </tr>
        </table>
        
        <div style="padding-top:10px">
        <asp:Repeater id="DocumentsRepeater" runat="server" OnItemDataBound="DocumentsRepeater_ItemDataBound">
            <HeaderTemplate>
                <table width="450px">
                    <tr>
                        <th align="left">Document</th>
                        <th align="left">Issue</th>
                        <th align="left">Approved by</th>
                        <th align="left">Approved date</th>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td valign="top">
                        <a id="linkLibraryA" runat="server" target="_blank">
                            <asp:Label runat="server" id="DocumentLabel"/>
                        </a>
                    </td>
                    <td valign="top">
                        <asp:Label runat="server" id="IssueLabel"/>
                    </td>
                    <td valign="top">
                        <asp:Label runat="server" id="ApprovedByLabel"/>
                    </td>
                    <td valign="top">
                        <asp:Label runat="server" id="ApprovedDateLabel"/>
                    </td>
                    <td valign="top" style="width:70px">                                                
                        <asp:ImageButton OnClick="editImagButton_Click" style="border:none;" id="editImageButton" runat="server" />&nbsp;
                        <asp:ImageButton OnClick="deleteImageButton_Click" style="border:none;" id="deleteImageButton" runat="server" />
                    </td>
                </tr>                
            </ItemTemplate>
            <FooterTemplate>
                </tr></table>
            </FooterTemplate>
        </asp:Repeater>
            </div>        
    </div>
</asp:Content>

<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
Application Page
</asp:Content>

<asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server" >
Grauers Set Metadata properties - SETTINGS
</asp:Content>
